package com.guofen.service.sjq;

import com.guofen.pojo.SjqSolidliquidProduceElectricity;
import com.guofen.pojo.SjqSolidliquidProduceFault;

import java.util.Map;

public interface SjqSolidliquidProduceFaultService {
    boolean addForm(String fillTime,String equipmentName,String FaultTime,String operator,String faultContent,
                    String serviceTimeStart,String serviceTimeEnd,String servicemanInCharge,String serviceMan,String faultReason,String serviceMethod,String proposer,String recoverTime,String inspector);
    SjqSolidliquidProduceFault findForm();

    public SjqSolidliquidProduceFault getLastByEquipmentName(String equipmentName);

    public boolean addFrontPart(String equipmentName,
                                String faultTime,
                                String operator,
                                String faultContent);

    public boolean addAfterPart(Integer faultId,
                                String serviceTimeStart,
                                String serviceTimeEnd,
                                String servicemanInCharge,
                                String serviceman,
                                String faultReason,
                                String serviceMethod,
                                String proposer,
                                String recoverTime,
                                String inspector);

    public Map<String, Object> get(int pageSize, int currentPage);

    public Map<String, Object> getByTime(int pageSize, int currentPage, long startTime, long endTime);

    public int delete(int id);

    public int update(SjqSolidliquidProduceFault record);

}
